#include "window.h"

#include "dummyrenderer.h"
#include "simplerenderer.h"

#include <QApplication>
#include <QGuiApplication>

int main(int argc, char ** argv)
{
    QApplication app(argc, argv);

    Window w;
    w.resize(800, 600);

#if _OLD_CODE_
//    Renderer* renderer = new DummyRenderer(&w);
//    Renderer* renderer = new SimpleRenderer("../data/teapot_with_normals.obj", &w);

//    Renderer* renderer = new SimpleRenderer("../data/cube.obj", &w);
//    Renderer* renderer = new SimpleRenderer("../data/1599_Engine_Chevrolet_Small_Block.dae", &w);

//     Renderer* renderer = new SimpleRenderer("../data/T-Rex_skeleton.obj", &w);


//    Renderer* renderer = new SimpleRenderer("../data/skeleton.obj", &w);
//    Renderer* renderer = new SimpleRenderer("../data/skeleton1.obj", &w);
 #if 0
    Renderer* renderer = new SimpleRenderer("../data/1599_Engine_Chevrolet_Small_Block.obj", &w);
    QMatrix4x4 rotation;
    rotation.rotate(30, QVector3D(0, 1, 0));
    renderer->setRotation(rotation);
#endif
    w.setRenderer(renderer);
#endif
    w.show();

    return app.exec();
}
